package com.ruiyian.bridge.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruiyian.bridge.project.domain.MeasurePoint;
import com.ruiyian.bridge.project.domain.vo.DataAnalysisDto;
import com.ruiyian.bridge.project.domain.vo.Mmh2oQueryBo;

import java.util.List;
import java.util.Map;

/**
 * 测点信息Service接口
 *
 * @author ruoyi
 * @date 2022-01-20
 */
public interface MeasurePointfoService extends IService<MeasurePoint>
{

    /**
     *
     */
     List<MeasurePoint> selectTSensorTypeList(MeasurePoint measurePoint);
//    List<ShebeiInfo> getShebeiList(ShebeiInfo info);

    /**
     * 查询测点信息
     *
     * @param id 测点信息主键
     * @return 测点信息
     */
    public MeasurePoint selectTSensorInfoById(Long id);

    /**
     * 查询测点信息列表
     *
     * @param measurePoint 测点信息
     * @return 测点信息集合
     */
    public List<MeasurePoint> selectTSensorInfoList(MeasurePoint measurePoint);

    /**
     * 新增测点信息
     *
     * @param measurePoint 测点信息
     * @return 结果
     */
    public int insertTSensorInfo(MeasurePoint measurePoint);

    /**
     * 修改测点信息
     *
     * @param measurePoint 测点信息
     * @return 结果
     */
    public int updateTSensorInfo(MeasurePoint measurePoint);

    /**
     * 批量删除测点信息
     *
     * @param ids 需要删除的测点信息主键集合
     * @return 结果
     */
    public int deleteTSensorInfoByIds(Long[] ids);

    /**
     * 删除测点信息信息
     *
     * @param id 测点信息主键
     * @return 结果
     */
    public int deleteTSensorInfoById(Long id);

    /**
     * 根据桥梁获取测点信息
     * @param bridgeId
     * @return
     */
    List<Map<String,Object>> getMeasPointList(Long bridgeId);

    /**
     * 获取测点数据 统计数据
     * @param bo
     * @return
     */
    Map<String,Object> queryDataListByAddr(Mmh2oQueryBo bo);


    /**
     * 数据查看 多维度统计
     * @param dto
     * @return
     */
    Map<String,Object> lookData(DataAnalysisDto dto);

    /**
     * 测点数据同步
     */
    void dataSyncAll();


    /**
     * 获取所有桥梁测点信息
     * @return
     */
    List<MeasurePoint> getMeasPointListAll();
}
